home *** CD-ROM | disk | FTP | other *** search
/ Aminet 22 / Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso / Aminet / dev / misc / gms_e.lha / GMSDev / EModules / graphics / pictures.e < prev    next >
Text File  |  1997-09-15  |  2KB  |  61 lines

  1. /*
  2. **  $VER: pictures.e V0.8B
  3. **
  4. **  Picture Object Definitions.
  5. **
  6. **  (C) Copyright 1996-1997 DreamWorld Productions.
  7. **      All Rights Reserved
  8. */
  9.  
  10. OPT MODULE
  11. OPT EXPORT
  12. OPT PREPROCESS
  13.  
  14. MODULE 'gms/dpkernel','system/register'
  15.  
  16. ->***************************************************************************
  17. ->* The picture structure for loading and depacking of pictures.
  18.  
  19. CONST PICVERSION   = 1,
  20.       TAGS_PICTURE = $FFFB0000 OR ID_PICTURE
  21.  
  22. OBJECT picture
  23.    head[1]    :ARRAY OF head
  24.    data       :LONG  -> Source.
  25.    width      :INT   -> Picture width
  26.    bytewidth  :INT   -> Picture byte width
  27.    height     :INT   -> Picture height
  28.    planes     :INT   -> Amount of planes
  29.    amtcolours :LONG  -> Amount of colours.
  30.    palette    :LONG  -> Pointer to Palette.
  31.    scrmode    :INT   -> Intended screen mode for picture.
  32.    scrtype    :INT   -> Interleaved/Chunky/Planar
  33.    options    :LONG  -> GETPALETTE/VIDEOMEM/REMAP...
  34.    file       :LONG  -> Where this picture comes from.
  35.    scrwidth   :INT   -> Screen Width (pixels)
  36.    scrheight  :INT   -> Screen Height (pixels)
  37. ENDOBJECT
  38.  
  39. CONST PCA_DATA       = TAPTR OR 12,
  40.       PCA_WIDTH      = TWORD OR 16,
  41.       PCA_BYTEWIDTH  = TWORD OR 18,
  42.       PCA_HEIGHT     = TWORD OR 20,
  43.       PCA_PLANES     = TWORD OR 22,
  44.       PCA_AMTCOLOURS = TLONG OR 24,
  45.       PCA_PALETTE    = TAPTR OR 28,
  46.       PCA_SCRMODE    = TWORD OR 32,
  47.       PCA_SCRTYPE    = TWORD OR 34,
  48.       PCA_OPTIONS    = TLONG OR 36,
  49.       PCA_FILE       = TAPTR OR 40,
  50.       PCA_SCRWIDTH   = TWORD OR 44,
  51.       PCA_SCRHEIGHT  = TWORD OR 46
  52.  
  53. CONST GETPALETTE = $00000001,
  54.       VIDEOMEM   = $00000002,
  55.       REMAP      = $00000004,
  56.       RESIZEX    = $00000010,
  57.       BLITMEM    = $00000020,
  58.       RESIZEY    = $00000040,
  59.       RESIZE     = $00000050
  60.  
  61.